package com.oig.sys.query.support.module;


import lombok.Data;

import java.util.List;

/**
 *      有嵌套
 *      {"$and":[
 *          {"optime":{"$between":[1614528000000,1616256000000]}},
 *          {"warehouseId":{"$in":[1,3,4]}},
 *          {"itemName":{"$like":"牛肉%"}},
 *          {"opType":{"$in":[1]}},
 *          {"containerNo":{"$eq":"222"}},
 *          {"$or":[{"price":{"$eq":1.1}},{"amount":{"$lt":1000}}]}
 *          ],
 *      }
 */
@Data
public class ConditionExp {

    private String key ;    //$and
    private List<ConditionPropertyExp> expList; //[{"containerNo":{"$like":"%CN%"}}]
    //支持嵌套
    private List<ConditionExp> innerCondition ;   //{"$or":[{"price":{"$eq":1.1}},{"amount":{"$lt":1000}}]}
    
}
